- @articles.each do |article|
  - if article.filename!=nil
    .pic= image_tag '/files/'+article.filename
  .subject{:style=>"clear:left;font-weight:bold;"}
    = article.subject
  %p
    = article.body
  - if article.attachment!=nil && article.attachment!=''
    %p
      %a{:href=>'/files/'+article.attachment}เอกสารเพิ่มเติม

  .bar= image_tag 'bar.gif'
%p
= will_paginate @articles
